From: Florian Müllner Date: Mon, 22 Aug 2022 23:30:18 +0000 (+0200) Subject: quickSettings: Override StButton:label property X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~452^2^2~20 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=646cb41e830396ea59c4e53f5c50f8a8694ad83c;p=gnome-shell.git quickSettings: Override StButton:label property StButton already has a :label property, so we should override it instead of shadowing it with a new property of the same name, like we already do for :icon-name. Part-of: --- diff --git a/js/ui/quickSettings.js b/js/ui/quickSettings.js index faa87601f..822893b78 100644 --- a/js/ui/quickSettings.js +++ b/js/ui/quickSettings.js @@ -34,13 +34,11 @@ var QuickSettingsItem = GObject.registerClass({ var QuickToggle = GObject.registerClass({ Properties: { + 'label': GObject.ParamSpec.override('label', St.Button), 'icon-name': GObject.ParamSpec.override('icon-name', St.Button), 'gicon': GObject.ParamSpec.object('gicon', '', '', GObject.ParamFlags.READWRITE, Gio.Icon), - 'label': GObject.ParamSpec.string('label', '', '', - GObject.ParamFlags.READWRITE, - ''), }, }, class QuickToggle extends QuickSettingsItem { _init(params) {